package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)" json:"username"`
	Password string `gorm:"type:varchar(100)" json:"password"`
}
type Movie struct {
	gorm.Model
	Title  string `gorm:"type:varchar(50)" json:"title"`
	Img    string `gorm:"type:varchar(150)" json:"img"`
	Types  string `gorm:"type:enum('科幻片','喜剧片','动作片','剧情片','爱情片')"`
	Num    int    `gorm:"type:int(11)" json:"num"`
	Status string `gorm:"type:enum('正常','不显示')" json:"status"`
	Create string `gorm:"type:datetime" json:"create"`
}
